<template> 
<div>
  <dialogDiy  ref="dialogDiy" :title="isEdit ? '编辑菜单' : '新增菜单'" DialogWidth="700px" :fullscreenDis="false">
    <menu-detail @closeDiaLog="handleClose" :id="id" :is-edit='isEdit'></menu-detail>
  </dialogDiy>
</div>

 
</template>
<script>
  import MenuDetail from './components/MenuDetail'
  import dialogDiy from '@/components/dialogDiy'
  export default {
    name: 'addMenu',
    components: { MenuDetail, dialogDiy },
    data() {
      return {
        isEdit: false,
        id: null
      }
    },
    methods: {
      openlog(v) {
        this.isEdit = v.isEdit
        if(v.id) {
          this.id = v.id
        }
        this.id = v.id
        this.$refs.dialogDiy.openlog();
      },
      handleClose(v) { 
        if(v) {
          this.$emit('handleCloseGetList', v)
        }
        this.$refs.dialogDiy.handleClose();
        
      }
    }
  }
</script>
<style>
</style>


